package com.tyros.storage.constant;

import com.tyros.common.kit.support.BaseCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhangshuaiyin
 * @date 2022/2/20 14:14
 */
@Getter
@AllArgsConstructor
public enum ResourceMessage implements BaseCode {
    /**
     * 成功
     */
    UPLOAD_FILE_EMPTY("8000", "上传文件为空"),
    DATABASE_FILE_EMPTY("8001", "资源文件不存在"),
    CREATE_DIR_ERROR("8101", "新建目录失败"),
    CREATE_FILE_ERROR("8102", "新建文件失败"),
    DELETE_FILE_ERROR("8103", "删除文件失败"),
    UPLOAD_FILE_ERROR("8104", "上传文件失败"),
    DOWNLOAD_FILE_ERROR("8105", "下载文件失败"),
    OSS_CLIENT_INIT_ERROR("8002", "连接阿里云异常"),

    STORAGE_TYPE_NOT_EXIST("8999", "不支持的存储类型"),
    ;
    /**
     * 错误代码
     */
    private final String code;
    /**
     * 错误信息
     */
    private final String message;
}
